#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1718384518(BasicNewsRecipe):
    title          = 'Android Police'
    language = 'en'
    __author__ = 'Spicy Poison'
    description = (
        'Android Police reports on Android, yes — news, reviews, how-to and buyers’ guides —'
        ' but they also cover the broader mobile industry, including tablets, wearables, personal audio,'
        ' the smart home, and how politics and regulation shape the way they use those products.')
    publisher = 'Valnet Publishing Group'
    oldest_article = 7
    max_articles_per_feed = 50
    no_stylesheets = True
    use_embedded_content = False
    ignore_duplicate_articles = {'title', 'url'}
    encoding = 'utf-8'
    masthead_url = 'https://www.valnetinc.com/images/brand/ap-logo-full-colored-dark.svg'
    remove_empty_feeds = True
    auto_cleanup   = True

    feeds          = [
        # Phones
        ('Phones', 'https://www.androidpolice.com/feed/phones/'),
        ('News about Phones', 'https://www.androidpolice.com/feed/phones-news/'),
        ('Guides about Phones', 'https://www.androidpolice.com/feed/phones-guide/'),
        ('Phones Features', 'https://www.androidpolice.com/feed/phones-features/'),
        ('Phones & Accessory Reviews', 'https://www.androidpolice.com/feed/phones-reviews/'),
        # Google
        ('Google', 'https://www.androidpolice.com/feed/google/'),
        ('News about Google', 'https://www.androidpolice.com/feed/news-google/'),
        ('Google Applications', 'https://www.androidpolice.com/feed/tag/google-app/'),
        ('Guides about Google', 'https://www.androidpolice.com/feed/guides-google/'),
        ('Features about Google', 'https://www.androidpolice.com/feed/features-google/'),
        # Operating Systems
        ('Operating Systems', 'https://www.androidpolice.com/feed/operating-systems/'),
        ('News about Operating Systems', 'https://www.androidpolice.com/feed/news-operating-systems/'),
        ('Guides about Operating Systems', 'https://www.androidpolice.com/feed/guides-operating-systems/'),
        ('Features on Operating Systems', 'https://www.androidpolice.com/feed/features-operating-systems/'),
        # Chromebooks
        ('Chromebooks', 'https://www.androidpolice.com/feed/laptops/'),
        ('News about Chromebooks', 'https://www.androidpolice.com/feed/news-chromebooks/'),
        ('Guides about Chromebooks', 'https://www.androidpolice.com/feed/guides-chromebooks/'),
        ('Chromebook & Laptop Reviews', 'https://www.androidpolice.com/feed/reviews-chromebooks/'),
        # Gadgets
        ('Gadgets', 'https://www.androidpolice.com/feed/gadgets/'),
        ('Smartwatches & Wearables', 'https://www.androidpolice.com/feed/wearables/'),
        ('Audio', 'https://www.androidpolice.com/feed/tag/audio/'),
        ('Accessories', 'https://www.androidpolice.com/feed/accessories/'),
        ('Smart Home', 'https://www.androidpolice.com/feed/smart-home/'),
        ('Applications & Games', 'https://www.androidpolice.com/feed/applications-games/'),
        # Reviews
        ('Reviews', 'https://www.androidpolice.com/feed/reviews/'),
        ('Phones & Accessory Reviews', 'https://www.androidpolice.com/feed/phones-reviews/'),
        ('Smartwatch & Wearable Reviews', 'https://www.androidpolice.com/feed/wearable-reviews/'),
        ('Tablet Reviews', 'https://www.androidpolice.com/feed/tablet-reviews/'),
        ('Headphones & Earbuds Reviews', 'https://www.androidpolice.com/feed/audio-reviews/'),
        ('Smart Home & Smart TV Reviews', 'https://www.androidpolice.com/feed/smart-home-reviews/'),
        ('Android Police’s Product Review Awards', 'https://www.androidpolice.com/feed/awards/'),

        ('Buyer’s Guides', 'https://www.androidpolice.com/feed/the-best/'),
    ]
